//package cn.itcast.utils.validation;
//
///**
// * 自定义的 校验规则
// *  RuleValidator 是实现类
// */
//
//
//import cn.itcast.utils.Impl.RuleValidation;
//
//import javax.validation.Constraint;
//import javax.validation.Payload;
//import java.lang.annotation.*;
//
//import static java.lang.annotation.ElementType.FIELD;
//import static java.lang.annotation.ElementType.METHOD;
//
//@Target({METHOD, FIELD, ElementType.ANNOTATION_TYPE})
//@Retention(RetentionPolicy.RUNTIME)
//@Constraint(validatedBy = RuleValidation.class)
//@Documented
//public @interface Rule {
//
//    String message() default"{404}";
//
//    Class<?>[] groups() default {};
//
//    Class<? extends Payload>[] payload() default {};
//
//}
